<?php
	include('utils/pui_content_pane_renderer.php');
	
	$categoryData = array();
	
	for ($i = 0; $i < count($categories); $i++) {
		array_push($categoryData, array(
			"id" => $categories[$i]->getId(),
			"name" => $categories[$i]->getCategoryName(),
			"description" => $categories[$i]->getCategoryDescription()
		));
	}
	
	$renderer = new PUIContentPaneRenderer("Downloads");
	$renderer->setItemTitle("Download");
	$renderer->setCategoryArray($categoryData);
	$renderer->render();
?>
<input type="hidden" id="ajax_url" value="<?php echo $this->url('ajax.php'); ?>" />
<?php echo $this->script('js/downloads.js'); ?>